package com.coldchain.admin.config.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.coldchain.common.enums.EnableStatusEnums;
import com.coldchain.common.enums.MapTypeEnum;
import com.coldchain.common.enums.PlatformTypeEnum;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author fangliai
 * @since 2018-09-14
 */
@TableName("ch_map")
public class Map implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "appKey",type = IdType.INPUT)
	private String appKey;
    /**
     * 地图类型
     */
	@TableField("mapType")
    @EnumValue
    private MapTypeEnum mapType;
    /**
     * 平台类型
     */
	@TableField("platformType")
    @EnumValue
	private PlatformTypeEnum platformType;

    /**
     * 总计调用次数
     */
	@TableField("totalInvoking")
	private Integer totalInvoking;
    /**
     * 总计调用失败次数
     */
	@TableField("totalErrorNum")
	private Integer totalErrorNum;

    @TableField("enableStatus")
	@EnumValue
	private EnableStatusEnums enableStatus;

	@TableLogic
	private Integer deleteFlag;
    /**
     * 创建时间
     */
	@TableField("createTime")
	private Long createTime;
    /**
     * 创建人
     */
	@TableField("createBy")
	private String createBy;


    public EnableStatusEnums getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(EnableStatusEnums enableStatus) {
        this.enableStatus = enableStatus;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }



    public MapTypeEnum getMapType() {
        return mapType;
    }

    public void setMapType(MapTypeEnum mapType) {
        this.mapType = mapType;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public Integer getTotalInvoking() {
		return totalInvoking;
	}

	public void setTotalInvoking(Integer totalInvoking) {
		this.totalInvoking = totalInvoking;
	}

	public Integer getTotalErrorNum() {
		return totalErrorNum;
	}

	public void setTotalErrorNum(Integer totalErrorNum) {
		this.totalErrorNum = totalErrorNum;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

    public PlatformTypeEnum getPlatformType() {
        return platformType;
    }

    public void setPlatformType(PlatformTypeEnum platformType) {
        this.platformType = platformType;
    }
}
